﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;

namespace EarthLineTransmitter
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            _controller = new EarthLineController();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            _controller.start();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            _controller.stop();
        }

        private void log(string text)
        {
            this.richTextBox1.AppendText(text+'\n');
        }

        private EarthLineController _controller;
    }
}
